
package edu.chl.vrangogym.persistence;

import edu.chl.vrangogym.persistence.exception.NonexistentEntityException;
import java.util.List;

/**
 *
 * @author andl
 * 
 * @revidedBy habbbe (2011-10-19)
 */
public interface Facade<T> {

    void create(T entity);
    
    void edit(T entity) throws NonexistentEntityException;
    
    void remove(T entity) throws NonexistentEntityException;
    
    T find(Object id);
    
    List<T> findAll();

    List<T> findRange(int[] range);

    int count();
    
}
